using System;
using Comteck.Winforms.Utils;
using WinApp = System.Windows.Forms.Application;

namespace Comteck.Winforms.Forms {
  /// <summary>
  /// 登录超时
  /// </summary>
  public partial class FrmDisplaySettingChanges : FrmBase {
    /// <summary>
    /// 
    /// </summary>
    public FrmDisplaySettingChanges() {
      InitializeComponent();
    }

    /// <summary>
    /// 
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    private void FrmLoginTimeout_Load(object sender, EventArgs e) {
      if (this.DesignMode) {
        return;
      }
    }

    /// <summary>
    /// 确认
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    private void btnConfirm_Click(object sender, EventArgs e) {
      this.DialogResult = System.Windows.Forms.DialogResult.OK;
      this.Close();
    }

    /// <summary>
    /// 取消
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    private void btnCancel_Click(object sender, EventArgs e) {
      this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
      this.Close();
    }

    /// <summary>
    /// 窗体关闭
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    private void FrmLoginTimeout_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e) {
      WinformHelper.SetAjaxLoadingClosed();
    }
  }
}
